#include <stdio.h>
#include <conio.h>
#include <iostream>
#include <fstream>

using namespace std;

int main(){
   ifstream file ( "C:\\miem2012s53\\trunk\\students\\golenok\\dataset\\iris\\iris.data" ); // declare file stream: http://www.cplusplus.com/reference/iostream/ifstream/
   string value;
   while ( file.good() )
  {
     getline ( file, value, ',' ); // read a string until next comma: http://www.cplusplus.com/reference/string/getline/
     cout << string( value, 1, value.length()-2 ); // display value removing the first and the last character from it
   }
   return 0; 
}
